﻿using RuoVea.ExEnum;
using RuoVea.ExSugar.Entity;
using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace RuoVea.H5ds.Server.Models;

/// <summary>
/// H5Template
/// </summary>
[SugarTable(nameof(H5Template), "H5Template")]
public class H5Template : EntityBase
{
    /// <summary>
    /// 名称
    /// </summary>
    [SugarColumn(ColumnDescription = "名称")]
    public string Name { get; set; }

    /// <summary>
    /// 内容
    /// </summary>
 
    [SugarColumn(ColumnDescription = "内容", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
    public string Content { get; set; }

    /// <summary>
    /// 结果内容
    /// </summary>
 
    [SugarColumn(ColumnDescription = "结果内容", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
    public string ResultContent { get; set; }
    
    /// <summary>
    /// 排序
    /// </summary>
    [SugarColumn(ColumnDescription = "排序", IsNullable = true, DefaultValue = "10")]
    public int? Sort { get; set; }

    /// <summary>
    /// 状态-正常_0、停用_1 
    /// </summary>
    [SugarColumn(ColumnDescription = "是否禁用", IsNullable = true)]
    public YesOrNot? IsDisable { get; set; }

    /// <summary>
    /// 备注
    /// </summary>

    [SugarColumn(ColumnDescription = "备注", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
    public string Remark { get; set; }

}
